import { createRouter, createWebHistory } from 'vue-router'
import TaskList from '../components/TaskList.vue'
import TaskForm from '../components/TaskForm.vue'

const routes = [
  { path: '/', component: TaskList },
  { path: '/add', component: TaskForm }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
